package com.npjscg.medicalpro.mapper;

import com.npjscg.medicalpro.controller.dto.UserPasswordDTO;
import com.npjscg.medicalpro.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author raote
 * @since 2022-06-23
 */
public interface UserMapper extends BaseMapper<User> {
    @Update("update sys_user set password = #{newPassword} where id = #{id} and password = #{password}")
    int updatePassword(UserPasswordDTO userPasswordDTO);



}
